import 'package:flutter/material.dart';

class SPlashPage extends StatefulWidget {
  const SPlashPage({Key key}) : super(key: key);
  @override
  _SPlashPageState createState() => _SPlashPageState();
}

class _SPlashPageState extends State<SPlashPage> {
  @override
  void initState() {
    super.initState();
    _init();
  }
  @override
  Widget build(BuildContext context) {
   return ConstrainedBox(
      constraints: BoxConstraints.expand(),
      child: Stack(
        alignment:Alignment.center ,
        children: <Widget>[
          Container(child: Text("Hello world",style: TextStyle(color: Colors.white)),
            color: Colors.red,
          ),
          Positioned(
            left: 18.0,
            top: 20,
            child: Text("Famer "),
          )
        ],
      ),
    );
  }

  void _init() {
      _loadUpdateInfo();
  }

  void _loadUpdateInfo() {

  }
  // Widget _buildSplashBg() {
  //   return new Image.asset(
  //     Utils.getImgPath('splash_bg'),
  //     width: double.infinity,
  //     fit: BoxFit.fill,
  //     height: double.infinity,
  //   );
  // }
}
